package com.yeswater.multithread.chapter1.test1_2.test1_2_3;

/**
 * author : yeswater
 * date : 2023/10/18
 *
 * 线程调用是随机的
 */

public class Test {
    public static void main(String[] args) {
        MyThread thread = new MyThread();
        thread.setName("myThread");
        thread.start();

        for (int i = 0; i < 10000; i++) {
            System.out.println("main : " + Thread.currentThread().getName());
        }
    }

    /*
     * run : myThread
     * run : myThread
     * main : main
     * main : main
     * main : main
     * main : main
     * run : myThread
     * run : myThread
     */
}
